﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTOs;

namespace Entities
{
    public class DataManager
    {

        ProductManager prdctManager;

        public DataManager()
        {
            prdctManager = new ProductManager();
        }

        #region products

        public void AddProductCategory(string name, string code)
        {
            prdctManager.AddProductCategory(name, code);
        }

        public List<ProductCategoryDTO> GetProductCategories()
        {
            return prdctManager.GetProductCategories();
        
        }

        public void AddProduct(ProductDTO productDetail)
        {
            prdctManager.AddProduct(productDetail);
        }

        public PagedData<ProductDTO> GetProductDetails(int type, int pageNumber, int pageSize)
        {
            return prdctManager.GetProductDetails(type, pageNumber, pageSize);       
        }

        #endregion

    }
}
